<template>
  <div class="tea-wapper">
  <div v-for="item in teaListData" class="tea-tool">
    <div class="left">
      <div class="title">
        <p class="bottom-boder"><a href="#">茶会资讯</a></p>
        <p>POSTED BY</p>
        <p class="bottom-boder"><a href="#">{{item.user.name}}</a></p>
        <p>POSTED IN</p>
        <p class="bottom-boder">sss</p>
        <p>COMMENTS</p>
        <p class="bottom-boder">ss次評價</p>
      </div>
    </div>
    <div class="right">
      <div class="content">
        <h2>zzz</h2>
        <div style="overflow: hidden">
          <a href="sss">
            <img  class="tea-thumb"  :src="item.image" alt="" width="100%">
          </a>
        </div>
        <p style="margin-top: 20px;overflow:hidden;text-overflow:ellipsis;height: 80px">ss</p>
      </div>
      <div class="last">
        <span>最新評論</span>
        <ul>


          <li>
            <img  :src="item.user.thumb" alt="1" />
            <p style="overflow:hidden;text-overflow:ellipsis; -o-text-overflow:ellipsis;white-space:nowrap;" >asdad</p>
          </li>



        </ul>
      </div>
    </div>
  </div>
  </div>
</template>

<script>
    export default {
      props: {
        teaListData: {
          type: Array,
          default() {
            return [];
          }
        }
      },
    }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss" rel="stylesheet/scss">
  .tea-wapper{
    position: relative;
    width: 1160px;
    margin: 0 auto;
  }
  .tea-tool {
    width: 1160px;
    height: 300px;
    margin: 30px auto;
  }
  .tea-tool .left {
    width: 270px;
    height: 300px;
    float: left;
    margin-right: 90px;
    background: url(../../assets/part-left.png) no-repeat center center;
  }
  .tea-tool .left .title {
    width: 160px;
    height: 175px;
    margin: 122px auto;
  }
  .tea-tool .left .bottom-boder {
    margin-bottom: 3px;
    border-bottom: 1px dashed #E86F89;
  }
  .tea-tool .left p {
    width: 160px;
    height: 34px;
    display: block;
    text-align: center;
    color: #E86F89;
  }
  .tea-tool .left p:nth-of-type(1) {
    height: 46px;
  }
  .tea-tool .left p:nth-of-type(1) a {
    font-size: 25px;
    color: #E86F89;
    line-height: 65px;
    font-weight: bold;
  }
  .tea-tool .left p:nth-of-type(1) a:hover {
    text-shadow: 0 0 2px #000000;
  }
  .tea-tool .left p:nth-of-type(2) {
    height: 15px;
    font-size: 13px;
    line-height: 17px;
  }
  .tea-tool .left p:nth-of-type(3) {
    height: 20px;
    line-height: 21px;
  }
  .tea-tool .left p:nth-of-type(3) a {
    color: #E86F89;
  }
  .tea-tool .left p:nth-of-type(3):hover {
    text-shadow: 0 0 2px #000000;
  }
  .tea-tool .left p:nth-of-type(4) {
    height: 15px;
    font-size: 13px;
    line-height: 17px;
  }
  .tea-tool .left p:nth-of-type(5) {
    height: 20px;
    line-height: 21px;
  }
  .tea-tool .left p:nth-of-type(6) {
    height: 15px;
    font-size: 13px;
    line-height: 17px;
  }
  .tea-tool .left p:nth-of-type(7) {
    height: 20px;
    line-height: 21px;
    font-weight: bold;
  }
  .tea-tool .right {
    width: 800px;
    height: 300px;
    float: left;
    background-color: #fff;
    box-sizing: border-box;
    padding: 5px 20px 5px 10px;
  }
  .tea-tool .right .content {
    width: 450px;
    height: 290px;
    float: left;
    margin: 0 40px 0 40px;

    .tea-thumb{
      transition: all 1s;
      &:hover{
        transform: translateY(-30px);
      }
    }
  }
  .tea-tool .right .content h2 {
    font-size: 20px;
    color: #24ABEB;
  }
  .tea-tool .right .content div {
    width: 434px;
    height: 154px;
    border-radius: 10px;
    border: 3px solid #24ABEB;
    margin-top: 5px;
  }
  .tea-tool .right .content p {
    text-indent: 2em;
    color: black;
    font-size: 12px;
  }
  .tea-tool .right .last {
    width: 230px;
    height: 270px;
    float: left;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0px 1px 1px black;
  }
  .tea-tool .right .last span {
    width: 230px;
    height: 30px;
    display: block;
    background-color: #24ABEB;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
  }
  .tea-tool .right .last ul {
    width: 100%;
  }
  .tea-tool .right .last li {
    width: 100%;
    height: 55px;
    margin-bottom: 0px;
    box-sizing: border-box;
    padding: 10px;
  }
  .tea-tool .right .last li p {
    width: 160px;
    height: 28px;
    background-color: #ddd;
    line-height: 28px;
    margin: 7px 0 0 8px;
    box-sizing: border-box;
    padding-left: 5px;
    float: left;
  }
  .tea-tool .right .last img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    float: left;
  }
</style>
